<span id="page_title">SCIS Info Board</span>
<nav id="nav">
    <ul id="menu">
      <?php 
          if($this->session->userdata('role') === 'author'){
              $link_text = array('Group', 'Post');
              $link_href = array(base_url().'groups', base_url().'post');
          } else {
              $link_text = array('User', 'Group', 'Post');
              $link_href = array(base_url().'users', base_url().'groups', base_url().'post');
          }
          for($i = 0; $i < sizeof($link_text); $i++){
              echo '<li id=main_menu><a class=main_a href='.$link_href[$i].'>'.$link_text[$i].'</a></li>';
          }
      ?>
    </ul>
</nav>
<div id="user_menu">
    <?php
    echo '<span id="sideB"><a href="'.base_url().'logout"><span>Logout</span></a></span>';
    echo '<span id="sideB"><a href="'.base_url().'authenticated/posts"><span>Visit Site</span></a></span>'; 
    ?>
</div>
  
<div id="line"></div>
